<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>借阅</title>
</head>

<body>

	<s:iterator value="fieldErrors">
		<font color=red> <s:property value="value[0]" />
		</font>
		<br>
	</s:iterator>

	<s:form action="/reader/Reader_getReaderBorrow" method="post">
		请输入用户编号:<input type="text" name="readerId" />
		<s:submit value="确认" />
	</s:form>
	<%@include file="readerReadOnly.jsp"%>
	<p>
		<s:form action="/book/Book_getBookBorrow" method="post">
		请输入图书编号:<input type="text" name="bookId" />
			<input type="hidden" name="readerId" value="${readerId}" />
			<input type="submit" value="确认" />
		</s:form>
		<%@include file="bookReadOnly.jsp"%>
	<p>
		<s:form action="/record/Record_borrow" method="post">
			<input type="hidden" name="readerId"
				value="${readerId}" />
			<input type="hidden" name="bookId" value="${bookId}" />
			<input type="hidden" name="number" value="${book.amount}" />
			<input type="submit" value="确认借阅" />
		</s:form>
	<p>
</body>
</html>
